package com.macro.mall.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
 * 新增店铺和用户的dto
 */
@EqualsAndHashCode(callSuper = false)
public class UmsAdminAndStoreParam {

    //ums_store
    @ApiModelProperty(value = "店铺名称")
    @NotEmpty(message = "店铺名称不能为空")
    private String storeName;

    @ApiModelProperty(value = "账户")
    @NotEmpty(message = "账户不能为空")
    private String account;

    @ApiModelProperty(value = "排序")
    @NotEmpty(message = "排序不能为空")
    private Integer sort;

    @ApiModelProperty(value = "等级")
    @NotEmpty(message = "等级不能为空")
    private Integer level;

    @ApiModelProperty(value = "状态；0->关闭；1->开启")
    private Integer status;

    @ApiModelProperty(value = "审核状态；0->待审核；1->审核未通过：2->审核通过")
    private Integer auditStatus;

    @ApiModelProperty(value = "营业执照")
    @NotEmpty(message = "营业执照不能为空")
    private String businessLicense;

    @ApiModelProperty(value = "营业执照")
    @NotEmpty(message = "营业时间不能为空")
    private String businessTime;

    private Long userId;

    @ApiModelProperty(value = "店铺地址")
    @NotEmpty(message = "店铺地址不能为空")
    private String storeAddress;

    @ApiModelProperty(value = "联系人")
    @NotEmpty(message = "联系人不能为空")
    private String linkman;

    @ApiModelProperty(value = "电话")
    @NotEmpty(message = "电话不能为空")
    private String phone;

    @ApiModelProperty(value = "默认结佣时间（以订单完成时间为基准顺延多少天）")
    @NotEmpty(message = "结佣时间不能为空")
    private Integer settlementCommissionTime;

    //ums_admin
    @ApiModelProperty(value = "用户名", required = true)
    @NotEmpty(message = "用户名不能为空")
    private String username;

    @ApiModelProperty(value = "密码", required = true)
    @NotEmpty(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "头像")
    @NotEmpty(message = "头像不能为空")
    private String icon;

    @ApiModelProperty(value = "邮箱")
    @NotEmpty(message = "邮箱不能为空")
    private String email;

    @ApiModelProperty(value = "昵称")
    @NotEmpty(message = "昵称不能为空")
    private String nickName;

    @ApiModelProperty(value = "备注信息")
    @NotEmpty(message = "备注信息不能为空")
    private String note;

    @ApiModelProperty(value = "账户类型：0->超级管理员；1->省级管理员；2->门店管理员")
    @NotEmpty(message = "类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "经度")
    @NotEmpty(message = "经度不能为空")
    private Double lon;

    @ApiModelProperty(value = "纬度")
    @NotEmpty(message = "纬度不能为空")
    private Double lat;

    @ApiModelProperty(value = "经纬度，为接收")
    private String lon_lat;

    @ApiModelProperty(value = "省级公司id")
    private Long parentId;


    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(Integer auditStatus) {
        this.auditStatus = auditStatus;
    }

    public String getBusinessLicense() {
        return businessLicense;
    }

    public void setBusinessLicense(String businessLicense) {
        this.businessLicense = businessLicense;
    }

    public String getBusinessTime() {
        return businessTime;
    }

    public void setBusinessTime(String businessTime) {
        this.businessTime = businessTime;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getStoreAddress() {
        return storeAddress;
    }

    public void setStoreAddress(String storeAddress) {
        this.storeAddress = storeAddress;
    }

    public String getLinkman() {
        return linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getSettlementCommissionTime() {
        return settlementCommissionTime;
    }

    public void setSettlementCommissionTime(Integer settlementCommissionTime) {
        this.settlementCommissionTime = settlementCommissionTime;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Double getLon() {
        return lon;
    }

    public void setLon(Double lon) {
        this.lon = lon;
    }

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public String getLon_lat() {
        return lon_lat;
    }

    public void setLon_lat(String lon_lat) {
        this.lon_lat = lon_lat;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }
}
